<?php
	$smarty->template_dir = 'components/statistics/templates/';
	$smarty->compile_dir = 'components/statistics/templates_c/';
	if(isset($_POST['result']) && $_POST['result']!=1){
		showStatistics($smarty,$_POST['result']);	
	}
	else{
		
		showStatistics($smarty,1);
		
	}
	$smarty->assign("component","statistics");
	$smarty->assign("title","User statistics");
	$smarty->display("statistic_type.tpl");

?>